package xaj.puiatti.ast;

import java.util.Iterator;
import java.util.List;
import abc.aspectj.ast.AspectBody_c;
import polyglot.ast.ClassBody;
import polyglot.ast.ClassMember;
import polyglot.ast.Formal;
import polyglot.ast.Term;
import polyglot.ext.jl.ast.Term_c;
import polyglot.lex.Identifier;
import polyglot.util.CodeWriter;
import polyglot.util.Position;
import polyglot.visit.CFGBuilder;
import polyglot.visit.PrettyPrinter;


public class DeclRuleBody_c extends Term_c implements DeclRuleBody {

	private List members;
	
    public DeclRuleBody_c(Position pos, List members) {
        super(pos);
        this.members = members;
    }

	public void prettyPrint(CodeWriter w, PrettyPrinter pp) {
        w.begin(0);
        w.write(" { ");
    	for (Iterator i = members.iterator(); i.hasNext(); ) {
    	    BlockRule f = (BlockRule) i.next();
    	    f.prettyPrint(w, pp);
    	    if (i.hasNext())
                w.allowBreak(0, " ");
    	}
        w.write(" } ");        
    }

	@Override
	public List acceptCFG(CFGBuilder v, List succs) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Term entry() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ClassBody addMember(ClassMember member) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List members() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ClassBody members(List members) {
		// TODO Auto-generated method stub
		return null;
	}


}
